package com.crm.model.vo.permissionManagement;

import com.crm.model.entity.sys.permissionManagement.SysMenu;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Author yincuimei
 * @Date 2020/12/7 9:37
 */
@Data
public class SysMenuVO {
    private String menuId;

    private String menuName;

    private String menuUrl;

    private String menuCode;

    private String menuPid;

    private Short menuLevel;

    private Short menuType;

    private String createPeopleId;

    private String createPeopleName;

    private String updatePeopleId;

    private Short deleteStatus;

    private Integer menuOrder;

    private String menuIcon;

    private Date createTm;

    private Date updateTm;

    private String sysId;

    /** 子菜单 */
    private List<SysMenuVO> childSysMenuList = new ArrayList<SysMenuVO>();

    public SysMenuVO(SysMenu sysMenu) {
        this.menuId = sysMenu.getMenuId();
        this.menuName = sysMenu.getMenuName();
        this.menuUrl = sysMenu.getMenuUrl();
        this.menuCode = sysMenu.getMenuCode();
        this.menuPid = sysMenu.getMenuPid();
        this.menuLevel = sysMenu.getMenuLevel();
        this.menuType = sysMenu.getMenuType();
        this.createPeopleId = sysMenu.getCreatePeopleId();
        this.createPeopleName = sysMenu.getCreatePeopleName();
        this.updatePeopleId = sysMenu.getUpdatePeopleId();
        this.deleteStatus = sysMenu.getDeleteStatus();
        this.menuOrder = sysMenu.getMenuOrder();
        this.menuIcon = sysMenu.getMenuIcon();
        this.createTm = sysMenu.getCreateTm();
        this.updateTm = sysMenu.getUpdateTm();
        this.sysId = sysMenu.getSysId();
    }
}
